home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
MacWorld 1999 January - Disc 2
/
Macworld (1999-01) (Disk 2).dmg
/
Serious Demos
/
Symbolic Composer 4.2
/
Environment
/
System
/
MRAC
/
Symbols
/
s-transpose-section
< prev
next >
Wrap
Lisp/Scheme
|
1998-08-11
|
484b
|
15 lines
s-transpose-section transpose-value section pattern
0-based
Use this function to map transpositions across sections of a multiple-list of symbol patterns.
(setq symbols
'((a b c d) (e f g h) (i j k l)
(a b c d) (e f g h) (i j k l)))
(s-transpose-section '(1 2 2 4 4) '(1 2 3 4 5) symbols)
=> ((a b c d) (f g h i) (k l m n) (c d e f) (i j k l) (m n o p))
(s-transpose-section '(1 2) '(3 4) symbols)
=> ((a b c d) (e f g h) (i j k l) (b c d e) (g h i j) (i j k l))